<?php
html::printPath(array('accomodationType.form-title' => 'admin/accomodationType/all', 'application.page-title-display' => ''));
$msg->printMessages();

echo html::entityInfoIcon('accomodation_type', $accomodationType, 'code');
?>

<ul class="commandList">
    <li class="deleteLi"><?php echo html::anchor('admin/accomodationType/delete?code=' . $accomodationType['code'], text::get('accomodationType.deleteThis'), array('onclick'=>'return confirmDeletion()')) ?></li>
</ul>

<?php
$fb = new FormBuilder('accomodationType', $accomodationType);
$fb->displayOnly();
$fb->text('code')->identifyingValue();
$fb->text('code_part')->hint();
$fb->text('name');
$fb->text('description');
$fb->write();

echo '<h3>' . text::getEscaped('application.localizedValues') . '</h3>';

echo '<ul class="commandList">';
echo '<li class="addLi">' . html::anchor('admin/accomodationType/editLocalizedValues?accomodation_type_code=' . $accomodationType['code'], text::get('application.createNewL10n')) . '</li>';
echo '</ul>';

$elb = new EntityListBuilder($this, $accomodationTypeL10nList);
$elb->setUuid($this->DISPLAY_LOCALIZED_VALUE_LIST_UUID);
$elb->text('language_name')->linkWithParams('/admin/accomodationType/editLocalizedValues?accomodation_type_code=%s&language_code=%s', array('accomodation_type_code', 'language_code'));
$elb->text('name');
$elb->text('description');
$elb->write();